{include file="header.tpl"}

   <h1>Users</h1>

   {include file="admin_sidebar.tpl"}

   <div id="content">
   
      {include file="flashes.tpl"}
      
      <div class="action_bar">
         <a class="add" href="{$spf.base_url}/users/register/">Add User</a>
      </div>
      
      <table>
         <thead>
            <tr>
               <th>User Name</th>
               <th>Display Name</th>
               <th>Status</th>
               <th>Email</th>
               <th class="center">Edit</th>
               <th class="center">Delete</th>
            </tr>
         </thead>
         <tbody>
            {foreach item=user from=$users}
            <tr class="{cycle values=",alt"}">
               <td>{$user.user_name}</td>
               <td>{$user.display_name}</td>
               <td>{$user.user_status|replace:'_':' '|lower|capitalize}</td>
               <td>{$user.email}</td>
               <td class="edit"><a href="{$spf.base_url}/users/edit/{$user.user_name}"></a></td>
               <td class="delete"><a href="#" onclick="spf.sitrack.confirm('/users/delete/{$user.user_name}')"></a></td>
            </tr>
            {/foreach}
            {if !$users}<tr><td class="norecords" colspan="10">No records found.</td></tr>{/if}
         </tbody>
      </table>
      
      <div class="clear"></div>
      
   </div>

{include file="footer.tpl"}
